<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<UlyssesAgenda.Repositories.GameObjects.GameObjectInfo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    
     <table>
        <tr>
            <th></th>         
            <th>
                Name
            </th>               
            <th>
                Last Saved
            </th>                        yay
        </tr>
        
        <% foreach (UlyssesAgenda.Repositories.GameObjects.GameObjectInfo go in Model) { %>
            <tr>
                <td>
                 <%= Html.ActionLink("Edit", "Edit", new {  id=go.CanonicalName  }) %> |
                 <%= Html.ActionLink("Details", "Details", new {  id=go.CanonicalName})%>
                </td>
                <td><b><%= Html.Encode(go.CanonicalName) %></b>
                </td>
                <td><%= Html.Encode(go.LastSave.ToString()) %></td>                
            </tr>
        <% } %>
        
    </table>
    
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>
